package com.ruoyi.shangpinguanli.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品管理对象 wx_product
 * 
 * @author ruoyi
 * @date 2025-09-11
 */
public class WxProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String imageUrl;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long soldQuantity;

    /** 类别ID */
    @Excel(name = "类别ID")
    private Long categoryId;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setSoldQuantity(Long soldQuantity) 
    {
        this.soldQuantity = soldQuantity;
    }

    public Long getSoldQuantity() 
    {
        return soldQuantity;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("price", getPrice())
            .append("imageUrl", getImageUrl())
            .append("soldQuantity", getSoldQuantity())
            .append("categoryId", getCategoryId())
            .toString();
    }
}
